- 
		Home
	
- 
MailPoet – Newsletters, Email Marketing, and Automation
- 
4.42.0
- 
Code
- 
Classes
-  SegmentsRepository 
		
			
				
					
													
								
																			
											| Total Complexity | 36 | 
																			
											| Dependencies | 18 | 
																			
											| Dependents | 41 | 
																	
							 
													
								
																			
											| Total lines | 320 | 
																			
											| Lines of code | 231 | 
																			
											| Logical lines of code | 109 | 
																	
							 
													
								
																			
											| Comment lines | 30 | 
																			
											| Methods | 17 | 
																			
											| Properties | 4 | 
																	
							 
											 
				 
									
							 
		 
	 
	Methods 17
	
		
		
			| Method | Rating | Maintainability | Complexity | Lines of code | 
		
		
					
				| createOrUpdate() | A | 43 | 10 | 49 | 
					
				| verifyDynamicSegmentExists() | S | 58 | 4 | 15 | 
					
				| bulkDelete() | S | 47 | 2 | 39 | 
					
				| updateDeletedAt() | S | 60 | 2 | 14 | 
					
				| getWPUsersSegment() | S | 61 | 2 | 13 | 
					
				| getWooCommerceSegment() | S | 61 | 2 | 13 | 
					
				| getCountsPerType() | S | 61 | 2 | 13 | 
					
				| isNameUnique() | S | 60 | 2 | 13 | 
					
				| verifyNameIsUnique() | S | 72 | 2 | 5 | 
					
				| getSegmentCountWithMultipleFilters() | S | 60 | 1 | 14 | 
					
				| findByUpdatedScoreNotInLastDay() | S | 63 | 1 | 12 | 
					
				| __construct() | S | 68 | 1 | 7 | 
					
				| getEntityClassName() | S | 82 | 1 | 3 | 
					
				| findByTypeNotIn() | S | 68 | 1 | 8 | 
					
				| bulkTrash() | S | 67 | 1 | 7 | 
					
				| doTrash() | S | 79 | 1 | 3 | 
					
				| bulkRestore() | S | 79 | 1 | 3 |